/* operation组件的通用样式 */

.title {
  padding: 8px 23px;
  overflow: hidden;
  border-bottom: 5px solid #f6f7f9;
  display: flex;
  position: relative;
  height: 50px;
  box-sizing: border-box;

  img {
    position: absolute;
    left: 0;
    top: -5px;
  }

  h5 {
    font-size: 16px;
    font-weight: 700;
    position: absolute;
    left: 70px;
    top: 0;
    line-height: 50px;
  }
}

.func {
  border-bottom: 5px solid #f6f7f9;
  padding: 20px 16px;
  font-size: 16px;

  .attr {
    line-height: 1;
    color: #47565d;
    font-weight: bolder;
    margin-bottom: 20px;

    span {
      font-size: 14px;
      font-weight: 400;
      color: red;
    }
  }

  ul.common-ul {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;

    li {
      flex: 1;
      height: 30px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 4px 0 0 4px;
      border: 2px solid #ededed;
      border-collapse: collapse;

      &.active {
        border: 2px solid #fb6638;
      }

      img {
        max-width: 100% !important;
        max-height: 100% !important;
      }
    }
  }

  h4 {
    position: relative;
    padding: 8px 16px 8px 16px;
    border-radius: 6px;
    color: red;
    font-size: 16px;
    line-height: 22px;
    margin-bottom: 10px;
    border: 1px solid #d8e8fc;
    background-color: #e5f0fe;
  }

  div.adjust-item {
    display: flex;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 10px;

    span {
      width: 64px;
      text-align: right;
      margin-right: 15px;
      color: #666;
    }

    :deep(.el-slider) {
      width: 240px;
      margin-right: 3px;
      margin-left: 15px;
    }

    :deep(.el-checkbox) {
      width: 100px;
      margin-right: 13px;
    }

    :deep(.el-color-picker) {
      margin-right: 13px;
    }

    :deep(.el-slider__runway.show-input) {
      margin-right: 15px;
    }

    :deep(.el-input-number) {
      width: 100px;
      background: #f4f3f7;
      border: 1px solid #f4f3f7;
    }

    .input-content {
      width: 200px;
    }

    .common-ul {
      width: 200px;
    }
  }

  .extra-div {
    border: 1px dashed #6b7685;
    box-sizing: border-box;
    line-height: 32px;
    height: 32px;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
  }

  .add-item {
    width: 100%;
    display: flex;
    list-style: none;

    .img-list {
      background: transparent;
      padding: 10px;
      margin-bottom: 0;

      img {
        width: 50px;
        height: 50px;
      }
    }

    li {
      background: #f4f3f7;
      border-radius: 4px;
      padding: 10px 20px 10px 10px;
      color: #999;
      margin-top: 10px;
      margin-bottom: 20px;
      position: relative;

      .sure-close {
        position: absolute;
        right: 5px;
        top: 5px;
        cursor: pointer;
      }
    }
  }
}

.link-div {
  width: calc(100% - 80px);
  display: flex;
  align-items: center;
  background: #e8effc;
  border: 0;
  padding: 16px;
  cursor: pointer;
  position: relative;

  :deep(.el-icon) {
    margin-right: 10px;
  }

  :deep(.el-input) {
    font-size: 12px;
    height: 30px;
    width: calc(100% - 30px);
  }

  .close-btn {
    position: absolute;
    right: 5px;
  }
}

:deep(.el-radio__label) {
  font-size: 16px;
}

.img-placeholder {
  width: 80px;
  height: 80px;
}

.icon-placeholder {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f3f7;
  border-radius: 4px;
  cursor: pointer;
  font-size: 30px;
}

.upload-img {
  width: 80px;
  height: 80px;
  line-height: 80px;
  margin-right: 10px;
  border: 1px dashed #ededed;
  text-align: center;
  color: #dad9d9;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  float: left;
  position: relative;

  :deep(.el-image) {
    width: 80px;
    height: 80px;
  }

  &:hover {
    .upload-img_cover {
      opacity: 1;
    }
  }

  .upload-img_cover {
    opacity: 0;
    position: absolute;
    transition: all 0.3s ease;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
  }
}

:deep(.el-upload-list) {
  width: 80px;
  height: 80px;
  margin-right: 10px;
}

:deep(.el-upload--picture-card) {
  width: 80px;
  height: 80px;
}

:deep(.el-dialog) {
  .icon-div-container {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
  }

  div.icon-div {
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    border: 1px solid #47565d;
    margin: 10px;

    span {
      font-size: 30px;
    }
  }
}

/* sub-options: 用于radio box 选择后展开的更多选项 */
.sub-options {
  .sub-option {
    background: #f4f3f7;
    border-radius: 4px;
    padding: 10px;
    display: flex;
    align-items: center;

    .label {
      color: #999;
    }

    .label__64 {
      width: 64px;
      flex-shrink: 0;
    }

    .label__76 {
      width: 76px;
      flex-shrink: 0;
    }

    .label__88 {
      width: 88px;
      flex-shrink: 0;
    }

    .label__112 {
      width: 112px;
      flex-shrink: 0;
    }

    .control-component {
      margin: 0 10px;
    }

    .value {
      color: #999;
    }

    /* 滑块组件 */
    :deep(.el-slider) {
      width: 240px;
    }

    /* 滑块组件 */
    :deep(.el-slider__runway.show-input) {
      margin-right: 10px;
    }

    /* 图片组件 */
    :deep(.el-upload--picture-card) {
      width: 80px;
      height: 80px;
    }

    /* 图片组件 */
    :deep(.el-upload-list__item) {
      width: 80px;
      height: 80px;
    }
  }

  .sub-option__vertical {
    flex-direction: column;
    align-items: flex-start;

    .control-component {
      margin: 10px 0 0;
    }

    .valur {
      margin: 10px 0 0;
    }
  }

  .sub-option__stretch {
    align-items: stretch;
  }
}

